<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>注册</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
		<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="/company2/public/static/assets/css/style.css">
		<link rel="stylesheet" href="/company2/public/static/assets/css/footer.css" />
  </head>
 
<body>
	<nav class="navbar-inverse navbar-default" role="navigation">
		<div class="container-fluid"> 
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#example-navbar-collapse">
				<span class="sr-only">切换导航</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/company2/public/index/index/index">COMPANY</a>
		</div>
		
	
		<div class="collapse navbar-collapse" id="example-navbar-collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="/company2/public/index/index/index">主页</a></li>
				<li><a href="/company2/public/index/shige">诗歌</a></li>
				<li><a href="/company2/public/index/write/message">留言板</a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right"> 
		        {if condition="$Think.session.username != null"}
				<li><a href="#"><span class="glyphicon glyphicon-user"></span> {$Think.session.username}</a></li> 
				<li><a href="/company2/public/index/write/logout"><span class="glyphicon glyphicon-log-in"></span> 退出</a></li> 
		    	{else/}
		        <li><a href="/company2/public/index/regist"><span class="glyphicon glyphicon-user"></span> 注册</a></li> 
		        <li><a href="/company2/public/index/login"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li> 
		    	{/if}
			</ul> 
		</div>
		</div>
	</nav>
	<div class="page-container">
		 <h1>注册</h1>
		  <form action="/company2/public/index/regist/regist" method="post">
				<input type="text" name="user_name" id="username"  placeholder="请输入用户名">
				<input type="password" name="user_password" id="password" placeholder="请输入密码">
				<input type="password" name="re_user_password" id="re_password" placeholder="请再次输入密码">
				<div id="warning" style="color: #D59202;"></div>
				<input placeholder="请输入验证码(区分大小写)" name="captcha" class="captcha"></input></p>
		    <img src="{:captcha_src()}" alt="点击更换" title="点击更换"  onclick="this.src='{:captcha_src()}?d='+Math.random();"  width="200px" height="100px" />
		     
				<input type="submit" class="submit" value="注册">
				
		  </form>
	
	</div>
	<footer class="navbar-bottom">
		<p>(c) Copyright 2017 PHP第一小组. All Rights Reserved. </p>
	</footer>
	<script>
		$(function(){
			$("#re_password").blur(function(){
						var password = $("#password").val();
						var re_password = $("#re_password").val();
						if(password != re_password){
							$("#warning").html("两次密码输入不一致");
						}else{
							$("#warning").html("输入正确");
						}
					});
			
			
			if($(window).height()==$(document).height()){
        $(".navbar-bottom").addClass("navbar-fixed-bottom");
      }
      else{
        $(".navbar-bottom").removeClass(" navbar-fixed-bottom");
      }		
		})
	
</script>
</body>
</html>
